package com.wiki.gds.user.provider.modular.sys.service;


import com.wiki.gds.base.database.common.BaseService;
import com.wiki.gds.user.facade.sys.model.User;
import com.wiki.gds.user.facade.sys.model.query.UserQuery;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserService extends BaseService<User> {

      User getBySelf(User user);

      /**
       * 给用户授权角色
       *
       */

      Boolean authUser(Long id,String ids);

      PageQuery listByDept(UserQuery query);

      /**
       * 批量删除用户及  用户关联角色
       *
       * @param ids
       * @return
       */
      Boolean delBatch(String ids);

      Boolean changeStatus(String ids,Integer type);

}
